package vipcard.meichehui.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import vipcard.meichehui.domain.*;

import javax.servlet.http.HttpSession;
import java.util.List;

@Service
@Component
public interface Cardservice {
//登录
    String login(User user, HttpSession httpSession);
//验证会员是否存在
    Integer vipinfo(Vip vip);
//开卡
    Integer addcard(Vip vip,HttpSession session);
//该账号所有会员信息
    List<VipVo> findall(HttpSession session);
//历史消费
    List<VipVo> getHistoryRecords(String identifier);
//扣费
    Integer deductFee(CarMoney carMoney,String session);
 //查询会员情况

 CardAdd selectbyid(String phone);
}
